﻿<UserControl x:Class="SuperQuery.UserControls.AddDatabaseWizard.SelectDatabasesView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300">
    <DockPanel>
        <TextBlock TextWrapping="Wrap" DockPanel.Dock="Top" Margin="5">
            Select the databases from the following list that you wish to add to the current Query Tab:
        </TextBlock>

        <DockPanel DockPanel.Dock="Bottom" LastChildFill="False">
            <Button x:Name="btnSelectAll" DockPanel.Dock="Right" Click="btnSelectAll_Click" KeyboardNavigation.TabIndex="2">Select _All</Button>
            <Button x:Name="btnSelectNone" DockPanel.Dock="Right" Click="btnSelectNone_Click" KeyboardNavigation.TabIndex="1">Select _None</Button>
        </DockPanel>

        <!--List of avaiable databases to choose from-->
        <ListBox Margin="5,0,5,0" ItemTemplate="{StaticResource SelectableDatabase}"
                 ItemsSource="{Binding AvailableDatabases}" KeyboardNavigation.TabIndex="0"/>
    </DockPanel>
</UserControl>
